package com.threeox.httplibrary.builder;

import com.threeox.httplibrary.request.PostStringRequest;
import com.threeox.httplibrary.request.RequestCall;

import okhttp3.MediaType;

/**
 *
 * @ClassName: PostStringBuilder
 *
 * @Description: Todo(PostString的请求方式构造器)
 *
 * @author 赵屈犇
 *
 * @date 创建时间:2016/12/21 11:27
 *
 * @version 1.0
 */
public class PostStringBuilder extends OkHttpRequestBuilder<PostStringBuilder> {

    private String content;
    private MediaType mediaType;

    public PostStringBuilder content(String content) {
        this.content = content;
        return this;
    }

    public PostStringBuilder mediaType(MediaType mediaType) {
        this.mediaType = mediaType;
        return this;
    }

    @Override
    public RequestCall build() {
        return new PostStringRequest(url, tag, params, headers, content, mediaType,id).build();
    }


}
